package com.iespring.mapper.admin;

import com.iespring.bean.admin.goods.po.MallCategory;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MallCategoryMapper {

    // 查询商品的类目信息
    List<MallCategory> getGoodsCategoryInfo();

    // 获取商品的子级类目信息
    Integer getGoodsSonCategoryId(Integer fatherCategoryId);

    List<MallCategory> getGoodsCategoryInfoByPid(@Param("pid") Integer pid);

    MallCategory selectByPrimaryKey(@Param("id") Integer id);

    List<MallCategory> selectBortherByPrimaryKey(@Param("id") Integer id);

    MallCategory selectParentByCurrentId(@Param("id") Integer id);

    List<MallCategory> selectBortherByParentId(@Param("id") Integer id);
}
